package com.box.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.box.entity.solrjItem.SearchBlog;

public interface SolrjMapper {
	
	@Select("SELECT b.id,b.title,b.summary,b.imageUrl,b.keyword,b.content FROM db_blog b;")
	List<SearchBlog> getItemList();
	
	//根据博客id查询博客记录
	@Select("SELECT b.id,b.title,b.summary,b.imageUrl,b.keyword,b.content FROM db_blog b WHERE b.id=#{id};")
	SearchBlog getSearchBlogById(@Param("id") Integer blogId);

}
